<template>
  <div id="tab-bar" :style="{ 'background-color': backColor }">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "TabBar",
  props: {
    backColor: {
      type: String,
      default: "#f6f6f6",
    },
  },
};
</script>

<style scoped>
#tab-bar {
  display: flex;
  justify-content: space-around;
  height: 49px;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  box-shadow: 0 2px 4px #000;
}
</style>